<template>
	<view class="">
		<bolgBox :bolgModular="bolgModular" :messageView="messageView"></bolgBox>
	</view>
</template>

<script>
	import bolgBox from '@/components/bolgInfo/index.vue'
	export default {
		components: {
			bolgBox
		},
		data() {
			return {
				bolgModular:[],
				messageView:[]
			}
		},
		onLoad() {
			this.bolgInfo();
			this.message();
		},
		methods: {
			//笔记内容
			bolgInfo() {
				this.$request('mock/93c1b8865170438476e406a41e3fdf37/studynotes/bolgInfo','GET').then(res => {
					console.log('返回笔记内容数据', res)// 打印调用成功回调
					this.bolgModular = res.bolgData;
				}).catch(err => {
					console.log('请求失败')
				})
			},
			//评论
			message() {
				this.$request('mock/93c1b8865170438476e406a41e3fdf37/studynotes/message','GET').then(res => {
					console.log('返回评论列表数据', res)// 打印调用成功回调
					this.messageView = res.messageData;
				}).catch(err => {
					console.log('请求失败')
				})
			},
		}	
	}
</script>

<style lang="scss">
@import "../../icon/iconfont.css";
.warp {
	
}
</style>
